const mongoose=require('mongoose')
const Schema=mongoose.Schema
MySchema=new Schema({
    username:{type:String,unique:true},
    password: {
        type: String,
        select: false,
        set(val){
            return require('bcrypt').hashSync(val,10)
        }
    },
    telephone:{type:Number},
    money:{type:Number},
})

module.exports=mongoose.model('My',MySchema)